package com.ruoyi.jinrong.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.jinrong.domain.TRZsqcxDto;
import com.ruoyi.jinrong.domain.TRZsqcxDtoCx;
import com.ruoyi.jinrong.service.TRZsqcxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/rentInstall")
@CrossOrigin
public class TRZsqcxController  extends BaseController {


    @Autowired
    private TRZsqcxService trZsqcxService;

    /**
     * 收房列表
     */
    @PreAuthorize(hasPermi = "system:contract:list")
    @GetMapping("/list")
    public TableDataInfo list(TRZsqcxDtoCx trZsqcxDtoCx)
    {
        startPage();
        List<TRZsqcxDto> list = trZsqcxService.selectTRZsqcxDtoList(trZsqcxDtoCx);
        return getDataTable(list);
    }

}
